home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / objcissu.lha / self-isa < prev    next >
Internet Message Format  |  1993-02-27  |  2KB

  1. Return-Path: <dglattin@trirex.com>
  2. Date: Mon, 8 Feb 93 20:20:05 -0800
  3. From: Dennis Glatting <dglattin@trirex.com>
  4. To: "Geoffrey S. Knauth" <gsk@marble.com>
  5. Subject: Re: object.m, self->isa
  6. Cc: gnu-objc@prep.ai.mit.edu
  7. Reply-To: dennis_glatting@trirex.com
  8.  
  9.  
  10. > While I also look at this, could someone please comment on
  11. > whether this is a correct fix? 
  12.  
  13.  
  14.  
  15. self-isa is (was?) a valid decl.  It is still a valid decl under  
  16. NeXTSTEP 3.0 too.
  17.  
  18.  
  19. -dpg
  20.  
  21. Return-Path: <petrilli@gnu.ai.mit.edu>
  22. To: dennis_glatting@trirex.com
  23. Cc: gnu-objc@prep.ai.mit.edu
  24. Subject: Re: object.m, self->isa 
  25. In-Reply-To: (Your message of Mon, 08 Feb 93 20:20:05 PST.)
  26.              <9302090420.AA00577@seattle.trirex.com> 
  27. Date: Tue, 09 Feb 93 06:48:29 -0600
  28. From: Chris Petrilli <petrilli@gnu.ai.mit.edu>
  29.  
  30.  
  31. >>>>> On Mon, 8 Feb 93 20:20:05 -0800, Dennis Glatting <dglattin@trirex.com> said:
  32.  
  33. Dennis> self-isa is (was?) a valid decl.  It is still a valid decl under  
  34. Dennis> NeXTSTEP 3.0 too.
  35.  
  36. While it might be valid it is EXTREEMLY bad programming style to use
  37. it.  For it to be valid, you MUST declare the object typed rather than
  38. "dynamically typed" as with "id".  For example:
  39.  
  40.         Object *myObject;
  41.  
  42.         printf ("%s\n", myObject->isA);
  43.  
  44. Is valid, but it is not guaranteed to always work.  It's my opinion
  45. that if you HAVE to use this to make it work, then your machine or
  46. compiler is broken.  Since I use Alphas daily, I can testify that it's
  47. the machine that's broken in my opinion.  Anyway, when I get some
  48. spare time I'm going to work on getting the GCC compiler to work
  49. better on the boxes... if I have to use them, I should at least have a
  50. decent compiler.
  51.  
  52. Chris
  53.  
  54.